package cn.wolfcode.luowowo.article.mapper;

import cn.wolfcode.luowowo.article.domain.Destination;
import cn.wolfcode.luowowo.article.query.DestinationQueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DestinationMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Destination record);

    Destination selectByPrimaryKey(Long id);

    List<Destination> selectAll();

    int updateByPrimaryKey(Destination record);

    List<Destination> getDestByDeep(Integer deep);

    List<Destination> queryDestinationsByRefIds(Long...refIds);

    List<Destination> queryForList(DestinationQueryObject qo);

    void changeHotValue(@Param("ishot") int ishot, @Param("id") Long id);

    void setInfo(@Param("id") Long id, @Param("info") String info);

    List<Destination> getHotDestByParentId(long regionId);

    List<Destination> getHotDestByRegionId(Long...regionId);
}